package com.qzdsoft.erpcloud.mapper.sys;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.qzdsoft.erpcloud.domain.sys.SysRoleTableField;
import com.qzdsoft.erpcloud.util.MyMapper;

public interface SysRoleTableFieldMapper extends MyMapper<SysRoleTableField>{

    List<String> queryAuthrizedTableFields(@Param("uid")Integer uid, @Param("tableid")String tableid);
 
    /**
     * 查询所有的表格字段
     * @param tableid
     * @return
     */
    List<String> queryTableFields(String tableid);
    /**
     * 查询是否具有所有功能权限
     * @param uid
     * @return
     */
    Integer hasAllAuth(Integer uid);
    
    /**
     * 根据roleId和tablId清除所有表格字段
     */
    Integer removeField(@Param("roleId")Integer roleId,@Param("tableId")Integer tableId);
    /**
     * 查找roleId拥有的字段
     * @param roleId
     * @return
     */
    Integer findByRoleId(@Param("roleId")Integer roleId);
    
    
}
